home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
tabvie.zip
/
MAINFRM.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1994-04-06
|
2KB
|
93 lines
// mainfrm.cpp : implementation of the CMainFrame class
//
#include "stdafx.h"
#include "tab.h"
#include "mainfrm.h"
#include "tabdoc.h"
#include "mainview.h"
#include "ctl3d.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMainFrame
IMPLEMENT_DYNAMIC(CMainFrame, CMDIFrameWnd)
BEGIN_MESSAGE_MAP(CMainFrame, CMDIFrameWnd)
//{{AFX_MSG_MAP(CMainFrame)
ON_WM_SYSCOLORCHANGE()
//}}AFX_MSG_MAP
// ON_COMMAND_EX(ID_GRAPHICS, OnSwitchTabs)
// ON_COMMAND_EX(ID_TIMELINE, OnSwitchTabs)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMainFrame construction/destruction
CMainFrame::CMainFrame()
{
// TODO: add member initialization code here
}
CMainFrame::~CMainFrame()
{
}
/////////////////////////////////////////////////////////////////////////////
// CMainFrame diagnostics
#ifdef _DEBUG
void CMainFrame::AssertValid() const
{
CMDIFrameWnd::AssertValid();
}
void CMainFrame::Dump(CDumpContext& dc) const
{
CMDIFrameWnd::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMainFrame message handlers
#if 0
BOOL CMainFrame::OnSwitchTabs(UINT nID)
{
CMDIChildWnd* pChild = MDIGetActive();
ASSERT(pChild != NULL);
CView* pView = (CView*)(pChild->GetActiveView());
ASSERT(pView != NULL);
CMainView* pMainView = (CMainView*)pView->GetParent();
ASSERT(pMainView != NULL);
if(!pMainView->IsKindOf(RUNTIME_CLASS(CMainView)))
return 0;
switch(nID)
{
case ID_GRAPHICS:
pMainView->switchTab(0);
break;
case ID_TIMELINE:
pMainView->switchTab(1);
break;
}
return 1;
}
#endif
void CMainFrame::OnSysColorChange()
{
CMDIFrameWnd::OnSysColorChange();
Ctl3dColorChange();
}